package com.taijia.chapter2;

/**
 * 变量
 * 
 * @author taijia
 * @since 2014年9月27日
 *
 */
public class Variate {
	
	static int i = 100;
	static float f = 1000f;
	static double d1, d2, d3 = 0.1;
	static String s = "Hello";
	
	static int mv = 3;
	int vmv = 3;
	static Variate variate=new Variate(); 
	
	public static void main(String[] args) {
		
		System.out.println(i);
		System.out.println(f);
		System.out.println(d1);
		System.out.println(d2);
		System.out.println(d3);
		System.out.println(s);
		
		modifyVar(mv);
		modifyVar(variate);
		System.out.println(mv);
		System.out.println(variate.vmv);
		
		System.out.println("\u0061");// 0000 0000 0110 0001
		System.out.println("\n");
	}
	
	public static void modifyVar(int mv) {
		mv = 2;
	}
	
	public static void modifyVar(Variate variate) {
		variate.vmv = 2;
	}
}
